package cn.besbing.server.service.primary;

import cn.besbing.model.entities.primary.NcAnalysisList;
import cn.besbing.model.mapper.primary.NcAnalysisListMapper;
import com.alibaba.fastjson.JSONObject;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PrimaryNcAnalysisListServiceImpl {

    @Autowired(required = false)
    NcAnalysisListMapper ncAnalysisListMapper;


    public boolean selectNcAnalysisListByAnalysisAndVersion(NcAnalysisList analysisList){

        if(ncAnalysisListMapper.ncAnalysisListByAnalysisAndVersion(analysisList.getName(),analysisList.getVersion()) != null ){
            return true;
        }else{
            return false;
        }
    }


}
